function fileupload(obj) {
	console.log(obj.files[0].name);
	var formdata = new FormData();
	formdata.append("thisfile", obj.files[0]);
	var savedir;
	$.ajax({
		url: '/api/complex/Upload', //用于文件上传的服务器端请求地址
		type: 'post',
		data: formdata,
		async: false,
		processData: false,
		contentType: false,
		success: function(result) //服务器成功响应处理函数
		{
			console.log(result);
			savedir = result.savedir;

		},
		error: function(e) //服务器响应失败处理函数
		{
			myConfirm(e);
		}
	});
	return savedir;
};

function fileuploadfull(obj) {
	console.log(obj.files[0].name);
	var formdata = new FormData();
	formdata.append("thisfile", obj.files[0]);
	var savedir;
	$.ajax({
		url: '/api/complex/Upload', //用于文件上传的服务器端请求地址
		type: 'post',
		data: formdata,
		async: false,
		processData: false,
		contentType: false,
		success: function(result) //服务器成功响应处理函数
		{
			console.log(result);
			savedir = result;

		},
		error: function(e) //服务器响应失败处理函数
		{
			myConfirm(e);
		}
	});
	return savedir;
}